﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Script.Serialization;
using Utilities;

namespace Models
{

    [JsonIgnoreAttribute("Workflow", "Activities")]
    public class Participant : EntityBase
    {
        [Display(Name="角色名称"), MaxLength(50)]
        public string Title { get; set; }

        [Display(Name="角色名称"), MaxLength(50)]
        public string PassingRule { get; set; }
        
        public virtual List<Employee> Employees { get; set; }
        public virtual List<Activity> Activities { get; set; }
        public virtual List<Condition> Conditions { get; set; }

        public virtual Workflow Workflow { get; set; }
        public int? WorkflowID { get; set; }
    }
}